{{assign var="title" value="添加理财产品"}}
{{include file="admin/intop.html"}}
<style>
        .lr{width:100px;}
        td.lf input{float:left;}
        td.lf select{float:left;}
        td.lf textarea{float:left;}
        .ico-succ{display: none;}
        span.float_left{float: left;}
</style>
<script src="res/js/jquery/jquery-migrate-1.1.1.js" type="text/javascript"></script>
<script src="res/js/base.js" type="text/javascript"></script>
<script type="text/javascript" src="res/js/formvalidator/formValidator-4.1.3.js"></script>
<script type="text/javascript" src="res/js/formvalidator/formValidatorRegex.js" ></script>
<script type="text/javascript">
function dealload(){    
    window.location.href = "admin.php?ctl=deal&act=dealload";
}
function deal(){    
    window.location.href = "admin.php?ctl=deal";
}
$(document).ready(function(){
    $.formValidator.initConfig({theme:"126",formID:"form1",mode:'AutoTip',onError:function(msg){alert(msg)},inIframe:true});

    var input_correct = "输入正确";
    var temp_n = "请输入投资者ID";
    $("#user_id").formValidator({onShow:temp_n,onfocus:temp_n,onCorrect:input_correct}).inputValidator({min:1,onError:temp_n}).regexValidator({regExp:"notempty",dataType:"enum",onError:temp_n});
    var temp_n = "请输入投资金额";
    $("#money").formValidator({onShow:temp_n,onfocus:temp_n,onCorrect:input_correct}).inputValidator({min:1,onError:temp_n}).regexValidator({regExp:"notempty",dataType:"enum",onError:temp_n});

    $.formValidator.reloadAutoTip();
});
</script>
<form id="form1" name="form1" onsubmit="chkgeo();" method="post" action="admin.php?ctl=deal&act={{$smarty.request.act}}">
<input type="hidden" name="id" value="{{$smarty.request.id}}">
<input type="hidden" name="actname" value="save">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr class="mouse">
    <td class="lr"> 理财项目</td>
    <td class="lf">
        {{$dealItem.TITLE}}
        <input name="deal_id" type="hidden" value="{{$dealItem.ID}}" />
    </td>
    </tr>
    <tr class="mouse">
    <td class="lr"> 融资总额</td>
    <td class="lf">{{$dealItem.PRICE}} （元）</td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 投资者</td>
    <td class="lf">
        <input name="user_id" type="text" maxlength="20" id="user_id" value="" /><span class="float_left">&nbsp;用户ID</span>
            <div id="user_idTip" ></div>
    </td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 投资金额</td>
    <td class="lf">
        <input name="money" type="text" maxlength="20" id="money" value="" /><span class="float_left">&nbsp;还可以投资额：{{$once_price}}（元）</span>
            <div id="moneyTip" ></div>
    </td>
    </tr>
    
    <tr class="bottom">
    <td colspan="2" align="center">
        <input type="submit" name="btnSubmit" id="btnSubmit" value="确认保存" />
        &nbsp;&nbsp;
        <input type="button" onclick="javascript:dealload();" value="返回投资记录列表" />
        &nbsp;&nbsp;
        <input type="button" onclick="javascript:deal();" value="返回理财项目列表" />
    </td>
    </tr>
</table>
</form>
{{include file="admin/infoot.html"}}
